package com.example.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * Created by Administrator on 2017-4-24.
 */
@RestController
public class HelloController {
    @ApiOperation(value="测试", notes="页面输出Hello Swagger2")
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String index(){
        return "Hello Swagger2";
    }
}
